import Vue from 'vue'
import Router from 'vue-router'
import NoteIndex from '@/views/note/index'
import NoteLogin from '@/views/note/Login'
import Note from '@/views/note/test/note'
//安装路由到vue
Vue.use(Router)
const routes = [
    {
        path:'/note/index',
        component: NoteIndex,
        hidden: true
    },
    {
        path:'/note/login',
        component: NoteLogin,
        hidden: true
    },
    {
        path: '/',
        component: NoteIndex,
    },
    {
        path: '/note',
        component: NoteIndex,
    },
    {
        path:'/note/test/note',
        component: Note,
        hidden: true
    },
]
export default new Router({
    routes,
    mode: 'history'//mode: 'hash', //默认hash模式，hash模式有#；另外还有一种history模式，没有#符号
})